package cn.virens.util.poi.write.tpl;

import java.util.ArrayList;
import java.util.List;

import org.apache.poi.ss.usermodel.CellStyle;

public class RowTpl {
	private int startRowNum;
	/**
	 * 列总数
	 */
	private Integer cellNum;
	/**
	 * 行中的样式
	 */
	private CellStyle style;
	/**
	 * 列模板
	 */
	private List<CellTpl> list;

	public int getStartRowNum() {
		return startRowNum;
	}

	public void setStartRowNum(int startRowNum) {
		this.startRowNum = startRowNum;
	}

	public Integer getCellNum() {
		return cellNum;
	}

	public void setCellNum(Integer cellNum) {
		this.cellNum = cellNum;
	}

	public CellStyle getStyle() {
		return style;
	}

	public void setStyle(CellStyle style) {
		this.style = style;
	}

	public List<CellTpl> getList() {
		return list;
	}

	public void setList(List<CellTpl> list) {
		this.list = list;
	}

	public List<CellTpl> addCell(CellTpl cellType) {
		if (list == null) {
			list = new ArrayList<CellTpl>();
		}
		list.add(cellType);
		return list;
	}
}
